package cn.itcast.dao;

import cn.itcast.domain.User;

import java.util.List;
import java.util.Map;

/**
 * @author Wang Chengzhi
 * @create 2019-10-24 8:54
 */
public interface UserDao {
    List<User> findAll();

    void add(User user);

    void delete(int id);

    User select(int id);

    void update(User user);


    int getTotalCount(Map<String, String[]> condition);

    List<User> findByPage(int start, int rows, Map<String, String[]> condition);

    User findUserByUsernameAndPassword(User user);
}
